package com.kgc.mapper;




import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import entity.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Mapper
public interface CategoryMapper extends BaseMapper<Category> {

    public List<Category> selectAll(Map map);

    List<Category> selectByCategoryType();

    List<Category> selectInsetPageByType(int type);

    Category selectInsetPageByCname(String cname);

    Category selectCategoryById(String id);

    List<Category> selectUpdatePageByType(HashMap<String, Object> map);

    Integer freezeCategoryInfo(String id);

    int selectProductByCategoryLevel1Id(String id);

    int selectChildrenCategory(String id);
}
